//
//  WmcDefaultEmptyView.swift
//  YPWatermarkCamera
//
//  Created by yupao_ios_macmini06 on 2022/10/24.
//

import UIKit

class WmcDefaultEmptyView: WmcBaseView {
    lazy var imgView: UIImageView = {
        let view = UIImageView()
        return view
    }()

    lazy var noteLabel: UILabel = {
        let view = UILabel()
        view.textColor = UIColor.wmc_grayH8_8A8A99
        view.font = 16.yp.uiFont
        return view
    }()

    class func emptyView(img: String, note: String) -> WmcDefaultEmptyView {
        let view = WmcDefaultEmptyView(frame: UIScreen.main.bounds)
        view.imgView.image = img.yp.uiImage
        view.noteLabel.text = note
        return view
    }

    override func makeUI() {
        self.backgroundColor = UIColor.wmc_gray_F7F8FA

        addSubview(imgView)
        addSubview(noteLabel)

        imgView.snp.makeConstraints { make in
            make.top.equalTo(132)
            make.centerX.equalToSuperview()
            make.width.height.equalTo(100)
        }

        noteLabel.snp.makeConstraints { make in
            make.top.equalTo(imgView.snp.bottom).offset(12)
            make.centerX.equalTo(imgView.snp.centerX)
        }
    }
}
